import 'package:app_30/models/referral_entity.dart';

referralEntityFromJson(ReferralEntity data, Map<String, dynamic> json) {
  if (json['user'] != null) {
    data.user = json['user'].toString();
  }

  if (json['tjr'] != null) {
    data.tjr = json['tjr'].toString();
  }

  if (json['regtime'] != null) {
    data.regtime = json['regtime'].toString();
  }

  if (json['jine'] != null) {
    data.jine = json['jine'].toString();
  }

  if (json['txnumber'] != null) {
    data.txnumber = json['txnumber'].toString();
  }

  if (json['vip'] != null) {
    data.vip = json['vip'].toString();
  }
  if (json['fcje'] != null) {
    data.fcje = json['fcje'].toString();
  }
  if (json['mac'] != null) {
    data.mac = json['mac'].toString();
  }

  if (json['regip'] != null) {
    data.regip = json['regip'].toString();
  }

  if (json['tjrjsstatus'] != null) {
    data.tjrjsstatus = json['tjrjsstatus'].toString();
  }

  if (json['app'] != null) {
    data.app = json['app'].toString();
  }

  return data;
}
